import path from 'path';
export class Driver {
  public driverName: string;
  public canConcurrent: boolean;
  public maxConcurrent: number;
  public executable: string; // the executable path, which can be a local path(relative or absolute) or global executable
  public driverConfigPath: string;
  public workDir: string;

  constructor(driverName: string, canConcurrent: boolean, maxConcurrent: number = 1, executable: string, absDriverConfigPath: string) {
    this.driverName = driverName;
    this.canConcurrent = canConcurrent;
    this.maxConcurrent = maxConcurrent;
    this.executable = executable;
    this.driverConfigPath = absDriverConfigPath;
    this.workDir = path.dirname(this.driverConfigPath);
  }
}